<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
class Index extends Controller
{
    public function index()
    {
        $xj = Db::table('preach')->where('preach_status',0)->limit(3)->order('preach_id desc')->select();
        // dump($xj);
        // exit;
        $this->assign("xj",$xj);
        $gs = Db::table('company')->where('company_status',0)->limit(8)->order('company_id desc')->select();
        // dump($xj);
        // exit;
        $this->assign("gs",$gs);
       return $this->fetch();
    }
}
